<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>

<script>
    let Person={
    name : "龙宝",
    age : 23,
    bobby: ["吃屁","睡觉"],

    eat: function(){
    document.write("龙宝喜欢吃屁");
    }}
    document.write(Person.eat());
</script>